/**
 * Created by Administrator on 2016/8/2.
 */
swan_pc
    .factory("EventManage",function($resource){
        return $resource("api/individualEvents",{
            "save":{
                method:"POST"
            },
            "query":{
                method:"GET"
            },
        })
    })
    .factory("EventManageById",function($resource){
        return $resource("api/individualEvents/:id",{id:"@id"},{
            "update":{
                method:"PUT"
            },
            "get":{
                method:"GET"
            },
            "delete":{
                method:"DELETE"
            }
        })
    })
    .factory("UpdateEventById",function($resource){
        return $resource("api/individualEvents/:id",{EventId:"@EventId"},{
            "update":{
                method:"PUT"
            }
        })
    })
    .factory("candidateUserManage",function($resource){
        return $resource("api/candidateUsers",{
            "save":{
                method:"POST"
            },
            "query":{
                method:"GET"
            }
        })
    })
    .factory("candidateUserManageById",function($resource){
        return $resource("api/candidateUsers/:id",{id:"@id"},{
            "delete":{
                method:"DELETE"
            }
        })
    })
    .factory("candidateUserByEvent",function($resource){
        return $resource("api/individualEvents/:id/candidateUsers",{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    })
